home *** CD-ROM | disk | FTP | other *** search
- Back to MENU
-
- "HTML" Primer
- -------------
-
- What is HTML?
- -------------
-
- HTML is a platform independent language specifically designed for
- use within the World Wide Web (WWW). Any machine with an HTML
- browser can view documents created with HTML from anywhere on the
- internet.
-
- HTML document structure
- -----------------------
-
- An HTML document consists of two parts. The "header" contains
- general information about the document. The "body" contains the
- code that determines the actual appearance of the document.
-
- Hence - structure of an HTML document:
-
- START OF HTML DOCUMENT
- START OF HEADER
- General info about document
- END OF HEADER
- START OF BODY
- Description of document
- END OF BODY
- END OF HTML DOCUMENT
-
- The start and end of an HTML document is delimited respectively by
- the
- codes <HTML> and </HTML>
-
- The Header
- ----------
-
- The header contains general information about the document. For
- most uses, only the title of the document is defined here.
-
- The start and end of the header is delimited by the codes <HEADER>
- and </HEADER> respectively.
-
- The start and end of the title is delimited by the codes <TITLE> and
- </TITLE> respectively. The title contains the text which is placed
- typically in the WWW browser window.
-
- Hence, a typical header would be:
-
- <HTML> - Denotes start of HTML document
- <HEADER> - Denotes start of header
- <TITLE> - Denotes start of title
- My Web Page - Denotes title text
- </TITLE> - Denotes end of title text
- </HEADER> - Denotes end of header
- ...
- </HTML> - Denotes end of HTML document
-
- The Body
- --------
-
- The Body contains the bulk of the code. This is the code which
- describes the actual appearance of the document.
-
- The body is delimited by the codes <BODY> and </BODY>.
-
- Hence, a typical body would be:
-
- ....
- <BODY> - Denotes start of body
- <H1> Welcome to my web page </H1>
- <HR>
- <P> Here is a link to <A HREF="http://www.lycos.com"> Lycos </A>
- </P>
- </BODY> - Denotes end of body
-
- The important bits
- ------------------
-
- 1 - To produce an effect over a large area of the document the HTML
- codes generally come in pairs - one code to start the effect, and
- one code to terminate the effect; for example <B> and </B> to
- respectively start and terminate a string of bold text. The
- terminating code always has a forward slash "/" before the
- letter(s).
- 2 - To produce an isolated effect, generally only one code is
- required; for example <HR> to insert a horizontal rule into the
- document.
- 2 - Under HTML-2, the formatting of the document is essentially the
- task of the browser. The HTML code tells the browser only in what
- order to do things. The browser will either ignore or make a hash
- of any attempts to apply a rigid formatting to the document. For
- example, linefeeds (strokes of the return key) are ingored; the
- browser will automatically format the text so that it all appears
- within the browser window.
- 3 - HTML is easy. Go through the TUTORIAL if you wish.